package Logic;

import java.awt.Color;

import javax.swing.JLabel;

public class Ball extends JLabel{

//Ball Variables
	int x;
	int y;
	 int radius = 50;
	//ball center x coord
	        int cX;
	//ball center y coord
	        int cY;
	//String text;
	//Color color;
	
	
//Constructor
	public Ball()
	{
		System.out.println("Creating Ball");
		x = 0;
		y = 0;
		//color = Color.WHITE;
		cX = x + radius;
        cY = y + radius;
	}
	
//Overloaded Constructor
	public Ball(int x1, int y1, String text1, Color color1)
	{
		System.out.println("Creating User Defined Ball");
		x = x1;
		y = y1;
		//text = text1;
		//color = color1;
	}
	
		
public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}
	//Removed sice we aren't painting anymore.
	//public String getText() {
	//	return text;
	//}

	//public void setText(String text) {
	//	this.text = text;
	//}

	//public Color getColor() {
	//	return color;
	//}

	//public void setColor(Color color) {
	//	this.color = color;
	//}
	
    public void setRadius(int radius){
    	this.radius = radius;
    }
    public int getRadius(){
    	return radius;
    }
    
    public void setCx(int cX){
    	this.cX = cX;
    }
    
    public int getCx(){
    	return cX;
    }
    
    public void setCy(int cY){
    	this.cY = cY;
    }
    
    public int getCy(){
    	return cY;
    }

	//Move Ball Method
	public void moveBall(int x, int y)
	{
		x = this.x;
		y = this.y;
	}
	
}
